package com.daydayup.learn.aop;

public class ClientTest {

    private static void payNormalV1() {
        PayService payService = new PayServiceImpl();
        payService.pay();
    }

    public static void payProxyV2() {
        PayService payService = new PayProxy(new PayServiceImpl());
        payService.pay();
    }

    public static void main(String[] args) {
        //payNormalV1();
        payProxyV2();
    }
}
